import unittest
import requests
from api.Login import TestLogin


class TestLogin_testcase(unittest.TestCase):
    session = None

    @classmethod
    def setUpClass(cls) -> None:
        cls.session = requests.session()

    # 登陆成功
    def testcase1(self):
        mobile = "13023802967"
        TestLogin.getsms(self.session, mobile)
        param = {
            "uuid": None,
            "sms_code": 1111
        }
        resp = TestLogin.login(self.session, mobile, param)
        print(resp.json())


